<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>点评管理</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/main.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/shop.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/user.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/square/blue.css" />
<script type="text/javascript"
	src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</head>
<body>
	<form id="dataform">
		<input name="c_goodsid" type="hidden" value="${goodid}" /> <input
			name="c_orderid" type="hidden" value="${orderid}" />
		<div class="mwrap">
			<div class="con_liLab">
				<div id="waterfall">
					<div class="pin">
						<dl class="g-list rel ">
							<dd class="g-img">
								<img src="<%=imagePath %>${apiGood.image}">
							</dd>
							<dd class="g-item">
								<a class="item-link"><div class="g-name">${apiGood.name}</div>
								</a>
							</dd>
						</dl>
						<textarea style="width: 100%; height: 100px; resize: none;"
							name="c_text" placeholder="请填写评价"></textarea>
						<div id="divAddressAdd">
							<div class="edit_add">
								<ul style="padding-top: .6em;">
									<li><span class="left_tit"><span class="red pr5">*</span>星级</span>
										<div class="right_text">
											<div class="right_select">
												<select class="form-control address_province_list"
													name="c_dtype"><option value="1">1星</option>
													<option value="2">2星</option>
													<option value="3">3星</option>
													<option value="4">4星</option>
													<option value="5">5星</option></select> <span class="bg_span"></span>
											</div>
										</div></li>
									<li><span class="left_tit"><span class="red pr5">*</span>是否匿名</span>
										<div class="right_text">
											<div class="right_select">
												<select class="form-control" name="c_guest"><option
														value="1">是</option>
													<option value="0">否</option>
												</select> <span class="bg_span"></span>
											</div>
										</div></li>
									<li><span class="left_tit"><span class="red pr5">*</span>是否点赞</span>
										<div class="right_text">
											<div class="right_select">
												<select class="form-control" name="is_raise"><option
														value="1">是</option>
													<option value="0">否</option></select> <span class="bg_span"></span>
											</div>
										</div></li>
								</ul>
								<div class="mcontainer mt15">
									<input type="button" class="btn btn-primary btn-block"
										value="确定" onclick="savedianping()" />
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
	<!--footer -->
	<div class="footer"></div>
	<script type="text/javascript"
		src="<%=basePath%>views/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>views/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>views/js/layer.m.js"></script>
	<%-- <script type="text/javascript" src="<%=basePath%>views/js/jquery.infinitescroll.min.js"></script> --%>
	<script type="text/javascript"
		src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="<%=basePath%>views/js/CommonJS.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>views/js/WeiXin/WeChatJS-SDK.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>views/js/MemberCenter/OrderCenter.js"></script>
</body>
<script>
	function savedianping() {
		$.ajax({
			type : "post",
			url : "../mobile/dianping_add",
			data : $("#dataform").serialize(),
			success : function(msg) {
				var info = eval('(' + msg + ')');
				if (info.code == "0000") {
					window.location.href = "../mobile/my_orders?status=5";
				} else {
					alert(info.information);
				}
			}
		})
	}
</script>
</html>
